package com.hmall.controller;

import com.hmall.domain.po.User;
import com.hmall.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.apiguardian.api.API;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gonghuaiguo
 */
@RestController
@RequestMapping("/demo")
@RequiredArgsConstructor
@Api(tags = "收货地址管理接口")
public class DemoController {

    private final IUserService userService;

    @PostMapping("save")
    @ApiOperation("增加用户信息")
    public void save(@RequestBody User user){
        userService.batchSave(user);
    }


}
